//
//  MediaStatementViewController.m
//  HorizonLight
//
//  Created by lanou on 15/10/10.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "MediaStatementViewController.h"

@interface MediaStatementViewController ()

@end

@implementation MediaStatementViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBar.translucent = YES;
    self.view.backgroundColor = [UIColor whiteColor];
    
    UILabel *mediaStatementLabel = [[UILabel alloc] initWithFrame:CGRectMake(kEdge, 0, kScreenWidth - 2 * kEdge, kScreenHeight* 4 / 5)];
    mediaStatementLabel.font = [UIFont systemFontOfSize:16];
    mediaStatementLabel.text = @"1.使用本软件不会使您获得或拥有任何属于我们或第三方的知识产权。本区案件中链接的视频作品以及文章作品的所有权利均属于作者，请勿传播、修改或以其他方式不当使用他人的作品，包括但不限于链接、下载、复制保护措施等。\n\n2.软件所提供的内容均来自于第三方网站，我们对其中的任何内容的合法性以及准确性概不负责，亦不承担任何法律责任。\n\n3.我们将以最大的努力维护本软件的正常运行，但您应对使用软件的结果自行承担风险，我们对此不作任何承诺或保证，不保证服务中断，不保证您所浏览的内容的安全性、准确性、以及完整性。由于网络的宽带、手机（或其他电子设备）硬件限制等任何原因造成您无法正常使用软件，我们不承担任何法律责任。";
    mediaStatementLabel.numberOfLines = 0;
    CGRect frame = [mediaStatementLabel.text boundingRectWithSize:CGSizeMake(kScreenWidth - 2 * kEdge, 10000) options:NSStringDrawingUsesLineFragmentOrigin attributes:[NSDictionary dictionaryWithObject:[UIFont systemFontOfSize:16] forKey:NSFontAttributeName] context:nil];
    mediaStatementLabel.frame = CGRectMake(kEdge, 64 + 10, kScreenWidth - 2 * kEdge, frame.size.height);
    
    [self.view addSubview:mediaStatementLabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
